package com.example.mqdemo.rabbitmq.publishquee.directexchange.consumer;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
public class PulishCoumer {
    @RabbitListener(queues = "publish")
    public void publish(String msg){
        System.out.println("punlish测试" + msg);
    }
}
